import request from '@/utils/request'

// 获取日期
export function getDelete(data) {
  return request({
    url: '/time/delete',
    method: 'delete',
    data
  })
}
// 时间段新增
export  function getTimeAdd(data) {
  return request({
    url: '/time/add',
    method: 'post',
    data
  })
}
// 编辑更新时间段
export  function getTimeUpdate(data) {
  return request({
    url: '/time/edit',
    method: 'put',
    data
  })
}

// 获取时间段
export  function getTimeslot() {
  return request({
    url: '/time/list',
    method: 'get',
  })
}
// 排期---------------------
//
export  function getScheduling(query) {
  return request({
    url: '/schedule/list',
    method: 'get',
    params:query
  })
}

// 修改可约状态
export  function getEdmitState(query) {
  return request({
    url: '/schedule/list',
    method: 'get',
    params:query
  })
}

